#include "vehicle.h"

Vehicle::Vehicle(const std::string& licensePlate, const std::string& brand, const std::string& model, double dailyRent)
    : licensePlate(licensePlate), brand(brand), model(model), dailyRent(dailyRent), isRented(false) {}

std::string Vehicle::getLicensePlate() const // 获取车牌号
{
    return licensePlate;
}

std::string Vehicle::getBrand() const // 获取品牌
{
    return brand;
}

std::string Vehicle::getModel() const // 获取型号
{
    return model;
}

double Vehicle::getDailyRent() const // 获取每日租金
{
    return dailyRent;
}

bool Vehicle::getIsRented() const // 获取租赁状态
{
    return isRented;
}

void Vehicle::rentOut() // 将车辆标记为已出租
{
    isRented = true;
}

void Vehicle::returnVehicle() // 将车辆标记为已归还
{
    isRented = false;
}    